package com.dycx.message;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class FeignUrlLogger implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate template) {
        // 打印Feign请求的URL
        System.out.println("Feign Request URL: " + template.url());
        // 如果需要对URL进行更复杂的处理，可以在这里编写代码
    }
}